package com.bishe.demo.modules.ticket.service.impl;

import com.bishe.demo.modules.ticket.dao.ModelSeatingDao;
import com.bishe.demo.modules.ticket.service.ModelSeatingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @Description ModelSeatingServiceImpl
 * @Author YHQ
 * @Date 2021/4/1 10:45
 */
@Service
@Transactional
public class ModelSeatingServiceImpl implements ModelSeatingService {
    @Autowired
    private ModelSeatingDao modelSeatingDao;
    //通过model的id查中间表id
    @Override
    public Integer getSMIdByModelId(Integer modelId) {
        return modelSeatingDao.getSMIdByModelId(modelId);
    }
    //通过座位类型的id查中间表的id
    @Override
    public Integer getSMIdBySeatingId(Integer seatingId) {
        return modelSeatingDao.getSMIdBySeatingId(seatingId);
    }
}
